﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    public class RoomManagerComponent : Component
    {
        public List<Room> RoomList = new List<Room>();

        public Room GetRoom(string Name)
        {
            for (int i = 0; i < RoomList.Count; i++)
            {
                if (RoomList[i].RoomName == Name)
                    return RoomList[i];
            }
            return null;
        }
    }
}
